package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("activity")
public class Activity {
    //
    @TableId(value="activity_id",type = IdType.AUTO)
    private Integer activityId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endTime;
    @ApiModelProperty(value="活动名称",required = true)
    private String activityName;
    @ApiModelProperty(value="活动简介",required = true)
    private Boolean activityStatus;
    @ApiModelProperty(value="活动次数")
    private Integer activityDrawNumber;
    @ApiModelProperty(value="活动参与人数")
    private Integer activityPeopleNumber;
    @ApiModelProperty(value="活动获奖人数")
    private Integer activityWinNumber;
    @ApiModelProperty(value="活动参与人数")
    private Integer activityWinPeopleNumber;
    @ApiModelProperty(value="活动图片",required = true)
    private String activityImage;
    @ApiModelProperty(value="一等奖ID")
    private Integer firstPrizeId;
    @ApiModelProperty(value="活动规则")
    private String activityRule;
    @ApiModelProperty(value="活动内容")
    private String activityContent;

}
